<?php
//declare (strict_types = 1);

namespace app\subscribe;
use think\Event;
class Wshopss
{
//    public function subscribe(Event $event)
//    {
//        //$event->listen('UserLogin', [$this,'onUserLogin']);
//        //$event->listen('UserLogout',[$this,'onUserLogout']);
//
//    }

    public function onUserEvent($event)
    {
        // 这个方法会在触发 user 事件时被自动调用
        \think\facade\Log::info('User event triggered');
    }
}
